<?php use_helper('jQuery')?>

<div style="float:right">
 <?php 
                echo jq_link_to_remote(image_tag('/images/icons/add.gif'), array(
			    'update' => 'add_folder_form',
                'script'=>'true',
                'url'    => 'folder_tools/show_folder_form?id='.$f->getId(),
		 		'loading'  => "$('#add_folder_indicator').show()",
				'complete' => "$('#add_folder_indicator').hide()",             
			    ),'style="background: none; width: 15px"');
                ?>	
</div>

<div style="float:right">
 <?php 
                echo jq_link_to_remote(image_tag('/images/icons/material.gif'), array(
			     'update' => 'add_folder_form',
                'script'=>'true',
			    'url'    => 'folder_tools/show_folder_form?edit_id='.$f->getId(),
		 		'loading'  => "$('#add_folder_indicator').show()",
				'complete' => "$('#add_folder_indicator').hide()",            
			    ),'style="background: none"');
                ?>	
</div>
<?php if(!$f->isRoot()): ?>
  <?php if($f->retrievePrevSibling()):?>
<div style="float:right">
    <?php echo link_to(image_tag('/images/icons/up.gif'),'folder_tools/move_folder_up?node='.$f->getId(),'style="background: none"');?>
</div>
  <?php endif ?>
  <?php if($f->retrieveNextSibling()): ?>
<div style="float:right">
  <?php echo link_to(image_tag('/images/icons/down.gif'),'folder_tools/move_folder_down?node='.$f->getId(),'style="background: none"');?>	
 

</div>
  <?php endif ?>
<?php endif ?>
<?php if(!$f->isRoot()): ?>
<div style="float:right">
 <?php echo link_to(image_tag('/images/icons/delete.gif'), 'folder_tools/delete_folder?id='.$f->getId(),array('confirm'=>'Вы уверены?'));?>	
</div>
<?php endif ?>